package org.easybuy.text;

import java.util.ArrayList;
import java.util.List;

import org.easybuy.dao.CommodityCategoryDao;
import org.easybuy.daoimpol.CommodityCategoryDaoImpol;
import org.easybuy.entity.CommodityCategory;

/**
 * @author feng2
 * 
 */
public class Category {

	/**
	 * @param 一级标题测试类
	 */
	public static void main(String[] args) {
		CommodityCategoryDao commodityCategoryDao = new CommodityCategoryDaoImpol();
		List<CommodityCategory> list = new ArrayList<CommodityCategory>();
		list = commodityCategoryDao.getAllSecondCategories(548);
		for (CommodityCategory commodityCategory : list) {
			System.out.println(commodityCategory.getName());
		}
	}

}
